FROM node:22-alpine@sha256:9bef0ef1e268f60627da9ba7d7605e8831d5b56ad07487d24d1aa386336d1944 as build
WORKDIR /app
COPY package*.json .
RUN npm ci --only=production
COPY index.js .
FROM node:22-alpine@sha256:9bef0ef1e268f60627da9ba7d7605e8831d5b56ad07487d24d1aa386336d1944
WORKDIR /app
COPY --from=build /app .
EXPOSE 80
CMD [ "npm", "start" ]